import akshare as ak

# stock_sse_deal_daily_df = ak.stock_sse_deal_daily(date="20211227")
# print(stock_sse_deal_daily_df)


# stock_individual_info_em_df = ak.stock_individual_info_em(symbol="000001")
# print(stock_individual_info_em_df)


# 实时行情数据-东财
# df = ak.stock_zh_a_spot_em()

# 沪 A 股
# df = ak.stock_sh_a_spot_em()

# 深 A 股
# df = ak.stock_sz_a_spot_em()

# 新股
# df = ak.stock_new_a_spot_em()

# 实时行情数据-新浪 慢
# df = ak.stock_zh_a_spot()

# 历史行情数据-东财
# df = ak.stock_zh_a_hist(symbol="000001", period="daily", start_date="20210301", end_date='20210907', adjust="")

# df = ak.stock_zh_a_daily(symbol="sz000002", start_date="20200301", end_date="20210907", adjust="qfq")
# df = ak.stock_zh_a_hist_163(symbol="sh601318", start_date="20210101", end_date="20220101")
# df = ak.stock_zh_a_hist_min_em(symbol="000001", start_date="2021-09-01 09:32:00",
#                                                            end_date="2021-09-06 09:32:00", period='5', adjust='')
# df = ak.stock_individual_info_em(symbol="000001")

# df = ak.stock_zh_a_minute(symbol='sh600751', period='1', adjust="qfq") # 分时数据-新浪
# df = ak.stock_zh_a_hist_min_em(symbol="000001", start_date="2021-09-01 09:32:00",
#                                end_date="2021-09-06 09:32:00", period='1', adjust='')  # 分时数据-东财
# df = ak.stock_zh_a_spot_em()

# df = ak.nicorn_company()
# df = ak.stock_financial_abstract()
# df = ak.futures_zh_daily_sina()
# ak.futures_contract_detail()
# ak.stock_us_zh_daily()
# ak.stock_zh_a_hist_min_em()
df = ak.futures_comm_info()
print(df.head().to_string())
print(df[df['保证金-每手'] < 5000])
